<?php 
use fayfox\helpers\Html;
?>
<?php echo F::form('setting')->open(array('admin/system/setting'))?>
	<?php echo F::form('setting')->inputHidden('_key')?>
	<div class="form-field">
		<label class="title">显示下列项目</label>
		<?php 
		foreach(F::app()->boxes as $box){
			echo Html::inputCheckbox('boxes[]', $box['name'],
				isset($enabled_boxes) && in_array($box['name'], $enabled_boxes) ? true : false, array(
					'label'=>$box['title'],
			));
		}
		?>
	</div>
	<div class="form-field">
		<?php echo F::form('setting')->submitLink('提交', array(
			'class'=>'btn-3',
		))?>
	</div>
<?php echo F::form('setting')->close()?>